Automatic Generation of Optimized Code for Marshalling Routines
نویسندگان
چکیده
We describe a new approach to the automatic generation of marshalling code which results in code that is fast and compact at the same time. The key insight behind our work is that certain types in an interface specification occur more often than others at run-time. We exploit this locality to solve a particularily difficult optimization problem in stub generators, namely the trade-off between compact but slow interpreted marshalling routines and fast but large compiled marshalling routines. We resolve this trade-off by using a hybrid between the two techniques. In a simulation study with ASN.1/BER we find that the hybrid approach can lead to fast and compact presentation conversion routines: the results indicate that for the X.400 e-mail protocol 50 % of the speed benefit of the compiled marshalling technique can be achieved by investing only 20 % of its code size overhead.
منابع مشابه
Profile Guided Code Optimisation of Marshalling Routines
The marshalling operation has often been identified as a performance bottleneck for high-speed network applications. In this paper, we propose the use of profile guided code generation of marshalling routines in order to better adapt performance optimisations of marshalling routines to the requirements of a specific application. We motivate this approach with a detailed case study and measureme...
متن کاملCompact and Efficient Presentation Conversion Routines
Presentation conversion is a key operation in any development environment for distributed applications, such as Corba, Java-RMI, DCE or ASN.1-based environments. It is also well-known performance bottleneck in high-speed network communication. Presentation conversion code is usually generated by an automatic code generation tool referred to as stub compiler. The quality of the code generated by...
متن کاملAutomated code generation for integrated layer processing
ALF (application level framing) and ILP (integrated layer processing) are protocol design and implementation concepts applied in high-performance communication architectures, e.g. to support multimedia applications. Writing ILP code is rather complex and, therefore, ILP code generation tools can reduce the time to develop efficient ILP protocol code significantly. This paper presents a tool, wh...
متن کاملImproved Code Sharing in Dynamically Generated Marshalling Routines (full Paper) Paul Menage Improved Code Sharing in Dynamically Generated Marshalling Routines
marshalling routines (Full paper) Paul Menage [email protected] phone: +44 1223 331859, fax: +44 1223 334678 University of Cambridge Computer Laboratory New Museums Site, Pembroke Street Cambridge, UK, CB2 3QG Abstract Marshalling schemes for Inter-process Communication (IPC) systems can be classi ed as compiled or interpreted; each has advantages and disadvantages. This paper presents a...
متن کاملCompact and Eecient Presentation Conversion Code
Presentation conversion is a key operation in any development environment for distributed applications, such as Corba, Java-RMI, DCE or ASN.1-based environments. It is also well-known performance bottleneck in high-speed network communication. Presentation conversion code is usually generated by an automatic code generation tool referred to as stub compiler. The quality of the code generated by...
متن کامل